<?php
namespace app\admin\controller;

use app\common\model\Admin;
use think\Controller;

class Auth extends Controller
{
	public function __construct( $request = NULL ) {
		parent::__construct( $request );
		if(Admin::checkLogin()){
			$this->redirect('Index/index');
		}
	}
	
	public function index() {
    	/*$admin=new Admin();
    	$admin->addAdmin(['username'=>'admin','password'=>'123456']);*/
    	return $this->fetch();
    }
}
